package com.jinsi.service.tang.iml;

import com.jinsi.mapper.tang.CommodityAuditLogMapper;
import com.jinsi.pojo.Commodity;
import com.jinsi.service.tang.CommodityAuditLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 商品历史价格列表
 * @author 唐文博
 * @Date 2022-08-22
 */
@Service
@Transactional
public class CommodityAuditLogServiceImpl implements CommodityAuditLogService {
    @Autowired
    private CommodityAuditLogMapper commodityAuditLogMapper;

    /**
     * 筛选搜索查询,根据商品名称、商品分类、操作时间查询
     * @param commodityName
     * @param commodityCode
     * @param createDate
     * @return
     */
    @Override
    @Transactional(readOnly = true)
    public List<Commodity> getCommodityAuditLog(String commodityName, Integer commodityCode, String createDate) {
        return commodityAuditLogMapper.getCommodityAuditLog(commodityName,commodityCode,createDate);
    }
}
